<!--src/main/resources/templates/pictrue/add.html-->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新增图片</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/addstyles.css}">
</head>
<body>
<h2>新增图片</h2>
<form th:action="@{/pictrue/save}" method="post">
    <label for="id">图片编号:</label>
    <input type="text" id="id" readonly="readonly" />
    <label for="title">图片标题:</label>
    <input type="text" id="title" name="title" required><br>
    <label for="content">图片内容:</label>
    <textarea id="content" name="content" required></textarea><br>
    <label for="url">图片地址:</label>
    <input type="text" id="url" name="url" required><br>
    <label for="user_id">用户编号:</label>
    <input type="text" id="user_id" name="user_id" required><br>
    <button type="submit">添加</button>
    <a th:href="@{/pictrue/findAll}" class="cancel-btn">取消</a>
</form>
</body>
</html>
